package com.big.app.service.impl;

import com.big.app.dao.MovieDao;
import com.big.app.entity.Movie;
import com.big.app.service.intf.MovieService;
import com.big.app.vo1.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * //       @author  GQ
 * //
 * //                .-~~~~~~~~~-._       _.-~~~~~~~~~-.
 * //            __.'              ~.   .~              `.__
 * //          .'//                  \./                  \\`.
 * //        .'//                     |                     \\`.
 * //      .'// .-~"""""""~~~~-._     |     _,-~~~~"""""""~-. \\`.
 * //    .'//.-"                 `-.  |  .-'                 "-.\\`.
 * //  .'//______.============-..   \ | /   ..-============.______\\`.
 * //.'______________________________\|/______________________________`.
 */
@Service
public class MovieServiceImpl implements MovieService {
    @Autowired
    private MovieDao dao;

    @Override
    public R selectByType(int type) {
        List<Movie> list = dao.selectByType(type);
        return R.ok(list);
    }
}
